package cn.stylefeng.guns.modular.purchase.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author allen
 * @date 2021/4/11 17:21
 * @version 1.0
 */
/**
    * 采购中心的供应商表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "purchase_supplier")
public class PurchaseSupplierEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 供应商名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 公司名称
     */
    @TableField(value = "company_name")
    private String companyName;

    /**
     * 公司地址
     */
    @TableField(value = "company_address")
    private String companyAddress;

    /**
     * 联系人
     */
    @TableField(value = "contactor")
    private String contactor;

    /**
     * 联系电话
     */
    @TableField(value = "contactor_phone_number")
    private String contactorPhoneNumber;

    /**
     * 账期，1：周结算，2：月结算，3：季度结算
     */
    @TableField(value = "settlement_period")
    private Integer settlementPeriod;

    /**
     * 银行名称
     */
    @TableField(value = "bank_name")
    private String bankName;

    /**
     * 银行账户
     */
    @TableField(value = "bank_account")
    private String bankAccount;

    /**
     * 开户人
     */
    @TableField(value = "bank_account_holder")
    private String bankAccountHolder;

    /**
     * 发票抬头
     */
    @TableField(value = "invoice_title")
    private String invoiceTitle;

    /**
     * 纳税人识别号
     */
    @TableField(value = "taxpayer_id")
    private String taxpayerId;

    /**
     * 经营范围
     */
    @TableField(value = "business_scope")
    private String businessScope;

    /**
     * 说明备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_COMPANY_NAME = "company_name";

    public static final String COL_COMPANY_ADDRESS = "company_address";

    public static final String COL_CONTACTOR = "contactor";

    public static final String COL_CONTACTOR_PHONE_NUMBER = "contactor_phone_number";

    public static final String COL_SETTLEMENT_PERIOD = "settlement_period";

    public static final String COL_BANK_NAME = "bank_name";

    public static final String COL_BANK_ACCOUNT = "bank_account";

    public static final String COL_BANK_ACCOUNT_HOLDER = "bank_account_holder";

    public static final String COL_INVOICE_TITLE = "invoice_title";

    public static final String COL_TAXPAYER_ID = "taxpayer_id";

    public static final String COL_BUSINESS_SCOPE = "business_scope";

    public static final String COL_REMARK = "remark";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}